import * as Router from 'koa-router';
import userCtrl from '../controllers/user/user';
import OrderController from '../controllers/order/orderDel';
import TimeNodeCtrl from '../controllers/timenode/timenode';
import config from '../config';
import * as koaJwt from 'koa-jwt';

const jwtMiddleware = koaJwt({ secret: config.secret });
const router = new Router();
router.prefix('/api/private');
router.use(jwtMiddleware);

router.post('/userInfo', userCtrl.userInfo);
router.post('/getOrder', OrderController.getOrderNo);




export default router;